<template>
<el-container>
  <el-aside width="200px"><sidebar class="sidebar-container"></sidebar></el-aside>
  <el-container>
    <el-header>header</el-header>
    <el-main>  <router-view/> </el-main>
    <el-footer>Footer</el-footer>
  </el-container>
</el-container>
</template>
<script>
import Sidebar from '@/views/layout/components/Sidebar'
import { mapGetters } from 'vuex'
import store from '@/store'


export default {
  name: 'Home',
  components: {
    Sidebar
  },
  computed: {
    sidebar() {
      return this.$store.state.app.sidebar
    }
  }
}

console.log(store.getters.permission_routers)
</script>

<style scoped>
  .el-header, .el-footer {
      background-color: #B3C0D1;
      color: #333;
      text-align: center;
      line-height: 60px;
    }

  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 850px;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 850px;
  }
  body > .el-container {
    margin-bottom: 40px;
  }
</style>